package artid.com.arttogoa.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * 
 * @Description: 重写GridView 解决与ScrollView 的冲突
 * @ClassName: MyProductGridView
 * @author: JianBo Yang
 * @date: 2015年6月2日 下午12:23:04
 *
 */
public class MyArtGridView extends GridView {

	public MyArtGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public MyArtGridView(Context context) {
		super(context);
	}

	public MyArtGridView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
				MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);
	}
}
